#!/bin/bash
rm -rf exe
echo "=======compile bench======="
mkdir exe

export CROSS_COMPILE=riscv64-unknown-linux-musl-
export CC=${CROSS_COMPILE}gcc

$CC  bench/memset.c -static -o exe/memset_musl
$CC  bench/memset.c install_rv64gcv/lib/libc.a -static -o exe/memset_rvv

$CC  bench/memcpy.c -static -o exe/memcpy_musl
$CC  bench/memcpy.c install_rv64gcv/lib/libc.a -static -o exe/memcpy_rvv

$CC  bench/memmove.c -static -o exe/memmove_musl
$CC  bench/memmove.c install_rv64gcv/lib/libc.a -static -o exe/memmove_rvv

$CC  bench/strlen.c -static -o exe/strlen_musl
$CC  bench/strlen.c install_rv64gcv/lib/libc.a -static -o exe/strlen_rvv
echo "=======compile bench end======="
